package com.zzxy.dao;

import com.zzxy.po.TUser;
import org.springframework.jdbc.core.JdbcTemplate;

public class User3DaoImpl {
    private JdbcTemplate jdbcTemplate;

    public JdbcTemplate getJdbcTemplate() {
        return jdbcTemplate;
    }

    public void setJdbcTemplate(JdbcTemplate jdbcTemplate) {
        this.jdbcTemplate = jdbcTemplate;
    }

    public void addUser(TUser user) {
        jdbcTemplate.update("delete from t_user where id= ?", user.getId());

    }
}
